﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WsSample
{
    public class WsServerSample
    {

        #region 单例
        private static WsServerSample instance;
        public static WsServerSample Instance
        {
            get
            {
                instance ??= new WsServerSample();
                return instance;
            }
        }
        #endregion


        private static object _lock = new();//   锁
        private static bool isStart = false;
        private static readonly int IntervalLoop = 10 * 1000; // 毫秒

        private readonly int TestPort = 8080;


        public WsServerSample()
        {
            Init();
        }

        /// <summary>
        /// 初始化
        /// </summary>
        private void Init()
        {
            isStart = true;
            //CheckLoop();
        }


    }
}
